$OpenBSD: patch-Makefile,v 1.4 2009/03/24 21:19:20 naddy Exp $
--- Makefile.orig	Tue Aug 21 12:17:36 2007
+++ Makefile	Tue Mar 24 22:15:48 2009
@@ -7,6 +7,6 @@ SUBDIR=	pfstatd
 CFLAGS+=	-Wall
 CFLAGS+=	-I${LOCALBASE}/include -I${.CURDIR}
 LDFLAGS+=	-L${LOCALBASE}/lib -L${X11BASE}/lib
-LDFLAGS+=	-lgd -lm -lpng -lz -ljpeg
+LDADD=		-lgd -lpng -lz -lm -ljpeg
 
 .include <bsd.prog.mk>
